package JavaDesign.report_2.t_1;

/**
 * @author zouran
 * createDate：2023/9/27  1:34
 */
public class MonthWorker extends Employee {
    int month;
    double monthSalary;

    public MonthWorker(int month, double monthSalary) {
        this.month = month;
        this.monthSalary = monthSalary;
    }

    @Override
    double earnings() {
        return month * monthSalary;
    }
}
